<!--头部-->
<header>
    <div class="logo">
        <img src="{{$websets['logo']}}" alt="" />
    </div>
</header>
<!--轮播图 -->
@if($sliders)
    <div class="swiper-container">
        <div class="swiper-wrapper">
            @foreach($sliders as $slider)
                <div class="swiper-slide">
                    @if($slider->link)
                        <a href="{{$slider->link}}"><img src="{{$slider->thumb}}" alt="" /></a>
                    @else
                        <a href="#"><img src="{{$slider->thumb}}" alt="" /></a>
                    @endif
                </div>
            @endforeach
        </div>
        <!-- Add Pagination -->
        <div class="swiper-pagination"></div>
    </div>
    <script>
        var swiper = new Swiper('.swiper-container', {
            pagination: {
                el: '.swiper-pagination',
            },
            loop:true,
            autoplay: {
                disableOnInteraction: false
            }
        });
    </script>
@else
@endif
<!--导航-->
<nav>
    <a class="{{Request::getPathInfo ()=='/'?'active':''}}" href="/">首页</a>
    @if($cates)
    @foreach($cates as $cate)
    <a class="{{Request::getPathInfo ()=='/lists/'.$cate->id?'active':''}}" href="{{route('lists',$cate->id)}}">{{$cate->cname}}</a>
    @endforeach
        @endif
</nav>